package cn.ds.fly.modules.sys.controller;

import cn.ds.fly.common.BaseController;
import cn.ds.fly.common.BaseForm;
import cn.ds.fly.modules.sys.service.UserService;
import cn.ds.fly.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Created by lds on 2017/12/15.
 * @author lds
 */
@RestController
@RequestMapping("/sys/user")
public class UserController extends BaseController {

    @Autowired
    private UserService userService;

    @PostMapping("info")
    public R info(@RequestBody BaseForm form){
        return R.ok().put("user",getUser());
    }
}